// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 引入vantui的组件
import Vant from 'vant';
// 引入vantui的样式
import 'vant/lib/index.css';
Vue.use(Vant);

Vue.config.productionTip = false
// 引入element的组件
import ElementUI from 'element-ui';
// 引入element的样式
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI)
// 引入修改过后的axios
import Axios from './common/axios'
// 添加到vue的原型链上
Vue.prototype.$http = Axios;
Vue.prototype.$host = 'http://localhost:3000';
import store from './store'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
